home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 1996
/
MacHack 1996.toast
/
Hacks
/
Hacks '96
/
Booting Gallery
/
Booting Gallery (source)
/
(Libraries)
/
Hubauer
/
DisableInterupts
/
DisableInterupts.h
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1996-06-22
|
209 b
|
16 lines
|
[
TEXT/MMCC
]
static short asm DisableInterupts()
{
move.w SR,d0
ori.w #0x0700,SR
rts
}
#pragma parameter EnableInterupts(__D0)
static void asm EnableInterupts(short saveSR)
{
move.w d0,-(a7)
move.w (a7)+,SR
rts
}